//
//  LHCountdownTool.h
//  WXYView
//
//  Created by lehuo on 2017/1/6.
//  Copyright © 2017年 lehuo. All rights reserved.
//

#import <Foundation/Foundation.h>
/**
 *remainTime 返回的剩余时间的倒计时 isEnd活动是否到截止时间
 */
typedef void(^RemainTime)(NSString *remainTime, BOOL isEnd);

typedef enum
{
    SMSType,//短信倒计时
    StretchType//活动倒计时
}CountdownType;
@interface LHCountdownTool : NSObject

/**
 *@params type 倒计时是活动还是短信
 *@params time 倒计时剩余时间 短信默认60s
 *@params remainTime 回调Block
 */
+ (void)getRemainTimeWith:(CountdownType)type time:(NSTimeInterval)time RemainTime:(RemainTime)remainTime;



@end
